Shortest paths in the Tower of Hanoi graph and finite automata
نویسنده
چکیده
Abstract. We present efficient algorithms for constructing a shortest path between two configurations in the Tower of Hanoi graph, and for computing the length of the shortest path. The key element is a finite-state machine which decides, after examining on the average only a small number of the largest discs (asymptotically, 63 38 ≈ 1.66), whether the largest disc will be moved once or twice. This solves a problem raised by Andreas Hinz, and results in a better understanding of how the shortest path is determined. Our algorithm for computing the length of the shortest path is typically about twice as fast as the existing algorithm. We also use our results to give a new derivation of the average distance 466 885 between two random points on the Sierpiński gasket of unit side.
منابع مشابه
Graphs S ( n , k ) and a variant of the Tower of Hanoi problem ∗
For any n ≥ 1 and any k ≥ 1, a graph S(n, k) is introduced. Vertices of S(n, k) are n-tuples over {1, 2, . . . , k} and two n-tuples are adjacent if they are in a certain relation. These graphs are graphs of a particular variant of the Tower of Hanoi problem. Namely, the graphs S(n, 3) are isomorphic to the graphs of the Tower of Hanoi problem. It is proved that there are at most two shortest p...
متن کاملThe Tower of Hanoi and Finite Automata
Some of the algorithms for solving the Tower of Hanoi puzzle can be applied “with eyes closed” or “without memory”. Here we survey the solution for the classical tower of Hanoi that uses finite automata, as well as some variations on the original puzzle. In passing, we obtain a new result on morphisms generating the classical and the lazy tower of Hanoi, and a new result on auomatic sequences.
متن کاملAn efficient algorithm to determine all shortest paths in Sierpiński graphs
In the Switching Tower of Hanoi interpretation of Sierpiński graphs Sn p , the P2 decision problem is to find out whether the largestmoving disc has to be transferred once or twice in a shortest path between two given states/vertices. We construct an essentially optimal algorithm thus extending Romik’s approach for p = 3 to the general case. The algorithm makes use of three automata and the und...
متن کاملMetric properties of the Tower of Hanoi graphs and Stern's diatomic sequence
It is known that in the Tower of Hanoi graphs there are at most two different shortest paths between any fixed pair of vertices. A formula is given that counts, for a given vertex v, the number of vertices u such that there are two shortest u, v-paths. The formula is expressed in terms of Stern’s diatomic sequence b(n) (n ≥ 0) and implies that only for vertices of degree two this number is zero...
متن کاملThe Number of Moves of the Largest Disc in Shortest Paths on Hanoi Graphs
In contrast to the widespread interest in the Frame-Stewart Conjecture (FSC) about the optimal number of moves in the classical Tower of Hanoi task with more than three pegs, this is the first study of the question of investigating shortest paths in Hanoi graphs H p in a more general setting. Here p stands for the number of pegs and n for the number of discs in the Tower of Hanoi interpretation...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- SIAM J. Discrete Math.
دوره 20 شماره
صفحات -
تاریخ انتشار 2006